<!DOCTYPE html>
<html class="root platform-win" lang="zh"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <meta charset="UTF-8">
  <title>已发布章节 - 作者中心 | 火星小说</title>
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <link href="http://author.hotread.com/favicon.ico" rel="shortcut icon">
  <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
  <meta name="renderer" content="webkit">
  <link rel="stylesheet" href="/css/normalize.css">
  <link rel="stylesheet" href="/css/common.css">
    <link rel="stylesheet" href="/css/works.css">
    <link rel="stylesheet" href="/css/story.css">
      <link rel="stylesheet" href="/css/details.css">
<body>
  <header class="header">
  <div class="container">
    <a class="slogan" href="/">
      <img src="/image/slogan.png" alt="">
    </a>
    <span class="user">
      <a href="{{url('auth/logout')}}">退出登陆</a>
    </span>
  </div>
</header>
  <div class="container container-max">
    <div class="nav">
  <h4>作者中心</h4>
  <ul>
    <li class="item active"><a href="{{url('work')}}">作品列表</a></li>
     <li class="item"><a href="{{url('subscribe')}}">订阅收入</a></li>
     <li class="item"><a href="{{url('reward')}}">打赏收入</a></li>
     <li class="item"><a href="{{url('comments')}}">评论管理</a></li>
     <li class="item"><a href="{{url('authorset')}}">个人设置</a></li>
  </ul>
</div>
    <div class="issue fl" id="published">
  <div class="right-header-haveback">
    <p class="hint wryh-font">
      <a href="{{url('work')}}" class="back">作品列表</a>
      <span class="back">{{$novel->title}}</span>
      <span>已发布章节</span>
    </p>
  </div>
  <div class="main-nav">
    <a href="{{url('chapteradd' , $nid)}}">写新章节</a>
    <a href="{{url('draft' , $nid)}}">草稿箱</a>
    <a href="{{url('published' , $nid)}}"  class="active">已发布章节</a>
    <a href="{{url('novelset' , $nid)}}">作品设置</a>
  </div>
  <div class="list-title i-t">
    <span>序号</span>
    <span>卷名</span>
    <span>标题</span>
    <span>字数</span>
    <span>发布时间</span>
    <span>最新修改时间</span>
    <span>操作</span>
  </div>
  <ul class="issue-list">

    @foreach ($chapters as $k=>$c)
    <li v-for="(index, chapter) in list">
      <span class="num">{{$k+1}}</span>
      <span class="rollname">
        <span class="text"></span>
        <span class="data-title" v-if="chapter.volumeName.length > 5"></span>
      </span>
      <span class="title">
        <span class="text" :class="{top: chapter.isIssue == 2}">{{$c->chtitle}}</span>
        <span class="data-title" v-if="chapter.name.length > 14"></span>
      </span>
      <span class="wordsnum">{{$c->wordcount}}</span>
      <span class="time">{{date('Y-m-d H:i:s', $c->pubtime)}}</span>
      <span class="newtime">{{date('Y-m-d H:i:s', $c->edittime)}}</span>
      <span class="operate">

        <a href="{{url('chapteredit' , ['nid' => $nid , 'chid' => $c->chid])}}" title="">修改</a>
        <a href="{{url('chapterdel' , ['nid' => $nid , 'chid' => $c->chid])}}" title="">删除</a>
      </span>
    </li>
    @endforeach

  </ul>
  <div class="pagination" style="text-align: center; display: block;">
    {!! $chapters->render() !!}
  </div>
</div>
  </div>
  <div class="popup" id="chapterSort" style="z-index: 2; display: none;">
    <div class="popup-box">
        <a href="javascript:void(0)" class="popup-close"></a>
        <h3 class="popup-title">章节排序</h3>
        <section class="popup-body">
            <div class="line-box">
                <div class="label">本章序号：</div>
                <span class="num"></span>
            </div>
            <div class="line-box">
                <div class="label">本章标题：</div>
                <span class="title"></span>
            </div>
            <div class="line-box">
                <div class="label">移动到：</div>
                <div class="select-box">
                    <div class="roll-box">
                        <div class="form-group">
                            <div class="form-control" data-placeholder="选择卷">
                                <input type="text">
                                <select class="select-model">
                                    <option value="-1" selected="selected">--请选择--</option>

                                </select>
                            </div>
                        </div>
                    </div>
                    <div class="section-box">
                        <div class="form-group">
                            <div class="form-control" data-placeholder="选择序号">
                                <input type="text">
                                <select class="select-model">
                                    <option value="-1" selected="selected">--请选择--</option>

                                    <option value="0">插入到卷尾</option>
                                </select>
                            </div>
                        </div>
                    </div>
                    <span class="hint">例：将序号57移动到序号2时，该章序号57将变为2，原序号2章节将变为3，逐次+1</span>
                </div>
            </div>
        </section>
        <footer class="popup-footer">
            <div class="btn disabled-btn">取消</div>
            <div class="btn">确定</div>
        </footer>
    </div>
</div>
  <div class="share-popup" style="display: none;" id="QrcodeDialog">
  <div class="share-popup-box">
    <a href="javascript:void(0)" class="popup-close" id="qr-close"></a>
    <div class="cover" id="qrcode"></div>
    <span class="text wryh-font">请用QQ、微信、微博客户端扫码打开。</span>
  </div>
</div>
</body></html>
